<?php

namespace Application\Form;
use Zend\Form\Form;
use Application\Model\abonnement\Abonnement;

class AbonnementForm extends Form {
	
	public function __construct(){
		
		parent::__construct("abonnement_form");
		
		$this->setAttribute('Method','post');
		
		$this->add(array(
				'type' => 'Zend\Form\Element\Email',
				'name' => 'email',
				'attributes' => array(
						'placeholder' => 'Tapez votre Email ici'
				)
			
		));
		
		$this->add(array(
				'type' => 'Zend\Form\Element\Select',
				'name' => 'action',
				'options' => array(
						'value_options' => array(
								'1' => 'Choisir \'action',
								'Inscription' => 'Inscription',
								'Désinscription' => 'Désinscription',
								
						),
				),
				'attributes' => array(
						'value' => '1' //set selected to '1'
				)
		));
		
		$this->add(array(
				'name' => 'submit',
				'attributes' => array(
						'type'  => 'submit',
						'value' => 'Envoyer',
						'id' => 'submitbutton',
				),
		));
	}
}

?>